%h3
  = @medias.size>1 ? _("medias") : _("media")
  = " "
  =_ "by date" 
  = " "
  = params[:cat]
- for @media in @medias
  .post
    %p.post_title= link_to h(HTMLEntities.decode_entities(@media.title)), url_for(:controller=>@media.permalink) 
    %p.post_details
      =_ '(date)',@media.creation
      = " "
      =_ '(time)',@media.creation
      = " "
      = _("by") 
      = ":"+@media.user.login.to_s
    %p.post_details
      = link_to _("comments"), url_for(:controller=>@media.permalink+"/#comments")
      = ":"
      = @media.comments.find(:all,:conditions=>"published=1 and banned=0").size 
      = " tags:"+@media.tags.collect{|t| link_to(t.name,url_for(:controller=>"media",:action=>"tag",:id=>t.name))}.join(" ") unless @media.tags.count==0 
  = will_paginate @medias

